window.addEventListener("load", function () {
	/* 左侧栏点击动效 */
	AllListener(".firstFloor", "click", function (item) {
		const iconFont = item.querySelector(".icon-xiangxia2")
		const secondFloor = item.nextElementSibling
		if (iconFont) {
			iconFont.style.transform == "" || iconFont.style.transform == "rotate(0deg)" ? (iconFont.style.transform = "rotate(180deg)") : (iconFont.style.transform = "rotate(0deg)")
		}
		if (secondFloor) {
			const children = secondFloor.children
			const floorHeight = children.length * children[0].offsetHeight
			secondFloor.style.height == "0px" || secondFloor.style.height == "" ? (secondFloor.style.height = floorHeight + "px") : (secondFloor.style.height = "0px")
		}
	})
})
